import http from "@/utils/request";

export function cagegoryList(params) {
    return http.request({
        url: "/api/mobile/public/goodsInfo/exclude/cagegoryList",
        method: "get",
        params
    });
}

export function goodsList(params) {
    return http.request({
        url: "/api/mobile/public/goodsInfo/exclude/goodsList",
        method: "get",
        params
    });
}

export function goodsDetail(params) {
    return http.request({
        url: "/api/mobile/public/goodsInfo/exclude/goodsDetail",
        method: "get",
        params
    });
}

export function confirmDetail(params) {
    return http.request({
        url: "/api/mobile/public/orderInfo/confirmOrder",
        method: "post",
        data: params
    });
}
export function listAddress(params) {
    return http.request({
        url: "/api/mobile/public/userAddress/all",
        method: "get",
        params
    });
}
export function createAddress(params) {
    return http.request({
        url: "/api/mobile/public/userAddress/create",
        method: "post",
        data: params
    });
}
export function editAddress(params) {
    return http.request({
        url: "/api/mobile/public/userAddress/edit",
        method: "post",
        data: params
    });
}
export function detailAddress(params) {
    return http.request({
        url: "/api/mobile/public/userAddress/detail",
        method: "get",
        params
    });
}
export function delAddress(params) {
    return http.request({
        url: "/api/mobile/public/userAddress/del",
        method: "get",
        params
    });
}
export function excludeAreas(params) {
    return http.request({
        url: "/api/mobile/public/userAddress/exclude/areas",
        method: "get",
        params
    });
}
export function shareConfig(params) {
    return http.request({
        url: "/api/mobile/public/exclude/shareConfig",
        method: "get",
        params
    });
}